

<?php if(isset($role)) $role = $role->result_array(); ?>
	<div class="row-fluid sortable">
				<div class="box span12">
					<div class="box-header well" data-original-title>
						<h2><?php if(isset($NEW)) echo "Tambah Role"; else echo "Edit Role"; ?></h2>
					</div>
					<div class="box-content">
						<table class="table">
							  <tbody>
								<tr>
									<td>Nama Role</td>
									<td><input id="nama-role" name="nama_role" value="<?php if(isset($role)) echo $role[0]['NAMA_ROLE']; ?>" type="text"></td>          
								</tr>
								<tr>
									<td><input type="hidden" name="id_role" value="<?php if(isset($role)) echo $role[0]['ID_ROLE']; ?>"></td>
									<td>
										<?php if(isset($NEW)): ?>
										<button class="btn" onclick="addRole();">Simpan</button>
										<?php else: ?>
										<button class="btn" onclick="submitRole(<?= $role[0]['ID_ROLE']; ?>);">Simpan</button>
										<?php endif; ?>
									</td>
								</tr>
								                             
							  </tbody>
						 </table>      
					</div>
				</div><!--/span-->
			<div><!--/row-->